package com.kehutong.house.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.annotation.UnSave;

import java.sql.Timestamp;
import java.util.List;

/**
 * @author liulei
 * @createTime 2021年7月1日 19:38
 */
@Table(value="t_device_management")
public class DeviceManagement extends Entity {
    private static final long serialVersionUID = 5501827289826182316L;
    protected DeviceManagement(String id) {
        super(id);
    }
    @Column(comment="公司id")
    private String corpId;

    @Column(comment="小区ID")
    private String communityId;

    @Column(comment="机号/设备编号")
    private Integer deviceNo;

    @Column(comment="平台设备号")
    private String khtDeviceNo;

    @Column(comment="设备序列号")
    private String deviceSeq;

    @Column(comment="小区名称")
    private String communityName;

    @Column(comment="设备名称")
    private String equipmentName;

    @Column(comment="设备类型")
    private String equipmentType;

    @Column(comment="设备类型名称")
    private String deviceClassifyName;

    @Column(comment="区域位置")
    private String regionalLocatione;

    @Column(comment="绑定状态")
    private String bindingState;

    @Column(comment="供应商ID")
    private String supplierId;

    @Column(comment="供应商名称")
    private String supplierName;

    @Column(comment="品牌")
    private String brand;

    @Column(comment="型号")
    private String model;

    @Column(comment="mac地址")
    private String mac;

    @Column(comment="设备状态")
    private boolean state;


    @Column(comment="逻辑删除")
    private boolean deleted;

    @Column(comment="设备心跳时间")
    private Timestamp heartBeatTime;

    @Column(comment="心跳间隔时间")
    private Integer hbinterval;

    @UnSave
    private long residentCount;

    @UnSave
    private String optype;

    @UnSave
    private boolean onLine;

    @UnSave
    private List<String> communityIds;

    public boolean isOnLine() {
        return onLine;
    }

    public void setOnLine(boolean onLine) {
        this.onLine = onLine;
    }



    public String getDeviceClassifyName() {
        return deviceClassifyName;
    }

    public void setDeviceClassifyName(String deviceClassifyName) {
        this.deviceClassifyName = deviceClassifyName;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }


    public String getCommunityId() {
        return communityId;
    }

    public void setCommunityId(String communityId) {
        this.communityId = communityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
    }

    public String getRegionalLocatione() {
        return regionalLocatione;
    }

    public void setRegionalLocatione(String regionalLocatione) {
        this.regionalLocatione = regionalLocatione;
    }

    public String getBindingState() {
        return bindingState;
    }

    public void setBindingState(String bindingState) {
        this.bindingState = bindingState;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean isState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    }
    public long getResidentCount() {
        return residentCount;
    }

    public void setResidentCount(long residentCount) {
        this.residentCount = residentCount;
    }

    public String getOptype() {
        return optype;
    }

    public void setOptype(String optype) {
        this.optype = optype;
    }

    public Timestamp getHeartBeatTime() {
        return heartBeatTime;
    }

    public void setHeartBeatTime(Timestamp heartBeatTime) {
        this.heartBeatTime = heartBeatTime;
    }

    public Integer getHbinterval() {
        return hbinterval;
    }

    public void setHbinterval(Integer hbinterval) {
        this.hbinterval = hbinterval;
    }

    public Integer getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(Integer deviceNo) {
        this.deviceNo = deviceNo;
    }

    public String getKhtDeviceNo() {
        return khtDeviceNo;
    }

    public void setKhtDeviceNo(String khtDeviceNo) {
        this.khtDeviceNo = khtDeviceNo;
    }

    public String getDeviceSeq() {
        return deviceSeq;
    }

    public void setDeviceSeq(String deviceSeq) {
        this.deviceSeq = deviceSeq;
    }
    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getCorpId() {
        return corpId;
    }

    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }

    public List<String> getCommunityIds() {
        return communityIds;
    }

    public void setCommunityIds(List<String> communityIds) {
        this.communityIds = communityIds;
    }



}
